package com.s53.crm.clue;

import com.s53.crm.entity.Clue;
import com.s53.crm.entity.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "clue-service", path = "/clues", fallback = ClueServiceApiFallback.class )
public interface ClueServiceApi {
    @PostMapping("/list")
    R list(@RequestBody Clue clue,
           @RequestParam("current")int current,
           @RequestParam("size")int size);
}
